package com.ysyx.ysyx_imageserver.utils;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class OsUtils {

    @Bean
    public  boolean isLinux() {

        return System.getProperty("os.name").toLowerCase().contains("linux");

    }

    @Bean
    public  boolean isWindows() {

        return System.getProperty("os.name").toLowerCase().contains("windows");

    }

}
